// 配置编译环境和线上环境之间的切换

let baseUrl = '';
let uploadUrl = ''
let dictUrl = ''
let iconfontVersion = ['567566_qo5lxgtishg','955164_h5fvyel32mm'];
let iconfontUrl = `//at.alicdn.com/t/font_$key.css`;
let codeUrl = `${baseUrl}/code`
const env = process.env
if (env.NODE_ENV == 'development') {
    baseUrl = `http://zllmeng.test/api/role/merchant/v1`; // 开发环境地址
    uploadUrl = 'http://zllmeng.test/api/v1/upload?type=image&app=merchant'
    dictUrl = 'http://zllmeng.test/api/v1/dict'
    //baseUrl = `http://www.zllmeng.com/api/role/merchant/v1`;
} else if (env.NODE_ENV == 'production') {
    baseUrl = `http://api.zllmeng.com/api/role/merchant/v1`;
    uploadUrl = 'http://api.zllmeng.com/api/v1/upload?type=image&app=merchant'
    dictUrl = 'http://api.zllmeng.com/api/v1/dict'

    // baseUrl = `http://api-test.zllmeng.com/api/role/merchant/v1`;
    // uploadUrl = 'http://api-test.zllmeng.com/api/v1/upload?type=image&app=merchant'
    // dictUrl = 'http://api-test.zllmeng.com/api/v1/dict'
    
} else if (env.NODE_ENV == 'test') {
    baseUrl = ``; //测试环境地址
}
export {
    baseUrl,
    iconfontUrl,
    iconfontVersion,
    codeUrl,
    env,
    uploadUrl,
    dictUrl
}